package com.liuceng.zen.pojo.domain;

import java.text.SimpleDateFormat;
import java.util.Date;

import lombok.Data;

@Data
public class GdtAdGroup extends BaseDomain {
  private Integer id;
  private Integer memberId;
  private Long uid;
  private Long cid;
  private String name;
  private Integer linkType;
  private String linkContent;
  private String deliverWeekTimes;
  private Integer deliverySiteset;
  private Integer deliverySitesetSpecType;
  private Integer deliverySitesetSpecId;
  private Long mid;
  private Integer bid;
  private String siteset;
  private String timeset;
  private String productId;
  private Long industryId;
  private String customCategory;
  private Long aid;
  private String status;
  private String auditMsg;
  private String costType;
  private String productType;
  private String playMode;
  private Date beginAt;
  private Date endAt;
  private Date gdtCreateAt;
  private Integer departmentId;
  private Integer adminId;
  private Integer sitesetType;
  private Integer crtSize;

  public String getUpdatedAtToString() {
    SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm");
    if (super.getUpdatedAt() == null) {
      return sdf.format(new Date());
    } else {
      return sdf.format(super.getUpdatedAt());
    }
  }
}
